<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/statistics/member/list" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>店铺：<input type="text" name="shop" value="${requestScope.dwzPageBean.countResultMap.shop}" placeholder="输入店铺名" /></td>
					<td>会员名：<input type="text" name="memberName" value="${requestScope.dwzPageBean.countResultMap.memberName}"></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<%--<shiro:hasPermission name="/statistics/member/toInsert">
				<li><a class="add" href="${pageContext.request.contextPath}/statistics/member/toInsert" rel="insert" target="dialog" mask="true"><span>添加</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/statistics/member/delete">
				<li><a class="delete" href="${pageContext.request.contextPath}/statistics/member/delete" rel="id" target="selectedTodo" title="确定要删除吗？" warn="请最小选择一条记录" mask="true"><span>批量删除</span></a></li>
			</shiro:hasPermission>--%>
		</ul>
	</div>
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="id" class="checkboxCtrl"></th>
				<th orderField="shop_id" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'shop_id'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>店铺ID</th>
				<th orderField="referer_id" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'referer_id'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>推荐人id</th>
				<th orderField="member_name" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_name'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>会员姓名</th>
				<th orderField="member_portrait" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_portrait'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>会员头像</th>
				<th orderField="member_sex" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_sex'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>性别</th>
				<th orderField="member_birthday" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_birthday'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>出生日期</th>
				<th orderField="member_phone" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_phone'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>会员电话</th>
				<th orderField="member_state" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_state'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>会员状态</th>
				<%--<th orderField="add_time" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'add_time'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>></th>
				<th orderField="operator" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'operator'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>操作人</th>
				<th orderField="del" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'del'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>是否删除 0否1是</th>--%>
				<th orderField="is_supper" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'is_supper'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>超级会员</th>
				<th orderField="member_num" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'member_num'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>会员号</th>
				<%--<th>操作</th>--%>
			</tr>
		</thead>
		<tbody>
			
				<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
					<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
						<tr >
							<td><input name="id" value="${record.memberId}" type="checkbox"></td>
							<td>${record.shopName}</td>
							<td>${record.refererId}</td>
							<td>${record.memberName}</td>
							<td>${record.memberPortrait}</td>
							<td>${record.memberSex==1?"男":"女"}</td>
							<td><fmt:formatDate value="${record.memberBirthday}" /></td>
							<td>${record.memberPhone}</td>
							<td>${record.memberState==0?"正常":"停用"}</td>
							<%--<td>${record.addTime}</td>
							<td>${record.operator}</td>
							<td>${record.del}</td>--%>
							<td>${record.isSupper == 1?"是":"否"}</td>
							<td>${record.memberNum}</td>
																																					 
							<%--<td>
								<shiro:hasPermission name="/statistics/member/toUpdate">
								<a title="编辑" target="dialog" href="${pageContext.request.contextPath}/statistics/member/toUpdate?id=${record.memberId}" class="editBtn" mask="true"><span>编辑</span></a>
								</shiro:hasPermission>
								<shiro:hasPermission name="/statistics/member/delete">
								<a title="确定要删除吗？" mask="true" target="ajaxTodo" href="${pageContext.request.contextPath}/statistics/member/delete?id=${record.memberId}" class="deleteBtn" mask="true"><span>删除</span></a>
								</shiro:hasPermission>
							</td>--%>

						</tr>
					</c:forEach>
				</c:if>
			
		</tbody>
	</table>
	<!-- 分页条 -->
	<%@include file="/WEB-INF/page/inc/pageBar.jsp"%>
</div>